systemcontrol api to use samsung product api, <script type="text/javascript" src="$webapis/webapis/webapis js"></script> should be loaded in index html this module defines functionalities for retrieving device information provided by the samsung product api the systemcontrol module provides additional functionalities for samsung b2b devices as a webapi you can use this webapi to retrieve and manage the system information for b2b devices since 6 5 product b2b privilege level partner privilege http //developer samsung com/privilege/systemcontrol summary of interfaces and methods interface method lampscheduleinfo customappinfo magicinfoserverinfo systemcontrolmanagerobject updatefirmwareprogresschangedcallback void onchange long progress ; systemcontrolmanager domstring getversion ;void capturescreen optional capturepath? path ;void rebootdevice ;domstring getserialnumber ;void updatefirmware domstring softwareid, domstring swufilename, domstring swversion, domstring swurl, long swtotalbytes ;void setupdatefirmwarelistener updatefirmwareprogresschangedcallback onchange ;void unsetupdatefirmwarelistener ;void setscreenlampschedule lampscheduleinfo info ;lampscheduleinfo getscreenlampschedule ;void setpanelmute activation enable ;activation getpanelmute ;void setsafetylock activation enable ;activation getsafetylock ;screenorientation getonscreenmenuorientation ;screenorientation getsourceorientation sourcetype source ;void setpcconnection pcconnection type ;pcconnection getpcconnection ;void setmessagedisplay activation enable ;activation getmessagedisplay ;void setcustomappinfo customappinfo info ;customappinfo getcustomappinfo ;void setirlock activation option ;activation getirlock ;void setbuttonlock activation option ;activation getbuttonlock ;void setautopoweron activation option ;activation getautopoweron ;void setmagicinfoserverinfo magicinfoserverinfo info ;magicinfoserverinfo getmagicinfoserverinfo ; 1 type definitions 1 1 activation whether the feature is enabled enum activation { "on", "off" }; the following values are supported on enabled off disabled since 6 5 1 2 screenorientation screen orientation of the device enum screenorientation { "landscape", "portrait", "auto" }; the following values are supported landscape horizontal orientation portrait vertical orientation auto automatic based on the screen rotation since 6 5 1 3 pcconnection computer connection type of the device enum pcconnection { "rj45", "rs232", "invalid" }; the following values are supported rj45 rj45 connection rs232 rs-232 connection invalid invalid connection type since 6 5 1 4 customapptimeout timeout values for waiting connection of custom url enum customapptimeout { "30sec", "60sec", "90sec", "120sec", "150sec", "180sec", "240sec", "300sec" }; the following values are supported 30sec timeout set to 30 seconds 60sec timeout set to 60 seconds 90sec timeout set to 90 seconds 120sec timeout set to 120 seconds 150sec timeout set to 150 seconds 180sec timeout set to 180 seconds 240sec timeout set to 240 seconds 300sec timeout set to 300 seconds since 6 5 1 5 sourcetype available source types on b2b set enum sourcetype { "tv", "pc", "hdmi1", "hdmi2", "hdmi3", "dp", "dvi", "magicinfo", "ops", "hdbt", "av", "comp", "magicinfos", "internal_usb", "url_launcher", "screen_mirroring" }; the following values are supported tv tv source pc pc source hdmi1 first hdmi hdmi2 second hdmi hdmi3 third hdmi dp display port dvi dvi magicinfo lfd application ops ops hdbt hdbt av av comp comp magicinfos magicinfos internal_usb usbmode url_launcher lfd application screen_mirroring screen mirroring since 6 5 1 6 capturepath the following virtual roots must be supported for capture file enum capturepath { "wgt-private-data", "wgt-private-tmp" }; the following values are supported wgt-private-data - the location for a widget's private data storage wgt-private-tmp - the location for a widget's private volatile storage since 6 5 2 interfaces 2 1 lampscheduleinfo object containing lamp schedule settings [nointerfaceobject] interface lampscheduleinfo { attribute activation use; attribute domstring firsttime; attribute long level1; attribute domstring secondtime; attribute long level2; }; attributes activation use lamp schedule status domstring firsttime first scheduled time of day, in the format "hours minutes" long level1 lamp level for the first scheduled time the value is a number between 0 and 100 domstring secondtime second scheduled time of day, in the format "hours minutes" long level2 lamp level for the second scheduled time the value is a number between 0 and 100 2 2 customappinfo object containing customapp url and timeout [nointerfaceobject] interface customappinfo { attribute domstring downloadserveraddress; attribute customapptimeout connectiontimeout; }; attributes domstring downloadserveraddress url of customapp server customapptimeout connectiontimeout timeout for network connecttion 2 3 magicinfoserverinfo object containing ssl option, address, port [nointerfaceobject] interface magicinfoserverinfo { attribute domstring ssl; attribute domstring address; attribute domstring port; }; attributes domstring ssl ssl of magicinfo server domstring address address of magicinfo server domstring port port of magicinfo server 2 4 systemcontrolmanagerobject defines a webapi object instance of the samsung product api the webapis systemcontrol object enables access to systemcontrol api functionality [nointerfaceobject] interface systemcontrolmanagerobject { readonly attribute systemcontrolmanager systemcontrol; }; webapi implements systemcontrolmanagerobject; attributes readonly systemcontrolmanager systemcontrol systemcontrol api namespace since 6 5 2 5 updatefirmwareprogresschangedcallback defines the firmware update progress callback [callback = functiononly, nointerfaceobject] interface updatefirmwareprogresschangedcallback { void onchange long progress ; }; methods onchange method that is invoked when the firmware update progress changes void onchange long progress ; privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters progress operation status exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method since 6 5 code example var onchange = function data { console log "[updatecallback] progress " + data + " changed" ; }; try { webapis systemcontrol setupdatefirmwarelistener onchange ; } catch e { console log "setupdatefirmwarelistener exception [" + e code + "] name " + e name + " message " + e message ; ; } 2 6 systemcontrolmanager provides methods for systemcontrol functionalities [nointerfaceobject] interface systemcontrolmanager { domstring getversion ; void capturescreen optional capturepath? path ; void rebootdevice ; domstring getserialnumber ; void updatefirmware domstring softwareid, domstring swufilename, domstring swversion, domstring swurl, long swtotalbytes ; void setupdatefirmwarelistener updatefirmwareprogresschangedcallback onchange ; void unsetupdatefirmwarelistener ; void setscreenlampschedule lampscheduleinfo info ; lampscheduleinfo getscreenlampschedule ; void setpanelmute activation enable ; activation getpanelmute ; void setsafetylock activation enable ; activation getsafetylock ; screenorientation getonscreenmenuorientation ; screenorientation getsourceorientation sourcetype source ; void setpcconnection pcconnection type ; pcconnection getpcconnection ; void setmessagedisplay activation enable ; activation getmessagedisplay ; void setcustomappinfo customappinfo info ; customappinfo getcustomappinfo ; void setirlock activation option ; activation getirlock ; void setbuttonlock activation option ; activation getbuttonlock ; void setautopoweron activation option ; activation getautopoweron ; void setmagicinfoserverinfo magicinfoserverinfo info ; magicinfoserverinfo getmagicinfoserverinfo ; }; since 6 5 methods getversion retrieves the systemcontrol module version on the device domstring getversion ; product b2b privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value domstring domstring systemcontrol plug-in version exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var version = null; try { version = webapis systemcontrol getversion ; } catch e { console log "[getversion] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if version { console log "[getversion] call syncfunction type " + version ; } capturescreen creates a screen capture of the device it is saved in the form of screencapture jpg file under the path entered by the user if there is no input path, it is saved in the form of /tmp/screencapture jpg, which is the default path if the api is called on the same path, the file will be overwritten it can be controlled using filesystem webapi void capturescreen optional capturepath? path ; product b2b lfd, iwb privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters path [optional][nullable] user input screencapture saved path,default path is /tmp/screencapture jpg exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error with the error type typemismatcherror if an input parameter is not compatible with its expected type since 6 5 code example try { webapis systemcontrol capturescreen "wgt-private-tmp" ; } catch e { console log "[capturescreen] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } rebootdevice reboots switches off and on again the device void rebootdevice ; product b2b privilege level partner privilege http //developer samsung com/privilege/systemcontrol exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example try { webapis systemcontrol rebootdevice ; } catch e { console log "[rebootdevice] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getserialnumber retrieves the device serial number domstring getserialnumber ; product b2b privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value domstring device serial number exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var serialnumber = null; try { serialnumber = webapis systemcontrol getserialnumber ; } catch e { console log "[getserialnumber] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if serialnumber { console log "[getserialnumber] call syncfunction type " + serialnumber ; } updatefirmware updates the device firmware void updatefirmware domstring softwareid, domstring swufilename, domstring swversion, domstring swurl, long swtotalbytes ; product b2b lfd, htv privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters softwareid unique firmware id swufilename bem file name swversion firmware version swurl full path to the bem file swtotalbytes bem file size exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type invalidvalueserror if any input parameter contains an invalid value with the error type notsupportederror if this feature is not supported with the error type typemismatcherror if an input parameter is not compatible with its expected type since 6 5 code example var softwareid = "0"; var swufilename = "upgrade bem"; var swversion = "t-hkmlakuc 0227 20"; var swurl = "http //10 88 43 36 8080/new2016/saurabh/swupdate/t-hkmlakuc_0227_20/image/upgrade bem"; var swtotalbytes = 1007396825; webapis systemcontrol updatefirmware softwareid, swufilename, swversion, swurl, swtotalbytes ; setupdatefirmwarelistener registers an asynchronous onchange firmware update progress callback void setupdatefirmwarelistener updatefirmwareprogresschangedcallback onchange ; product b2b lfd, htv privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters onchange callback method to invoke exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type typemismatcherror if an input parameter is not compatible with its expected type since 6 5 code example var onchange = function data { console log "[updatefirmwareprogresschangedcallback] progress " + data + " changed" ; } try { webapis systemcontrol setupdatefirmwarelistener onchange ; } catch e { console log "setupdatefirmwarelistener exception [" + e code + "] name " + e name + " message " + e message ; ; } unsetupdatefirmwarelistener unregisters the asynchronous onchange firmware update progress callback void unsetupdatefirmwarelistener ; product b2b lfd, htv privilege level partner privilege http //developer samsung com/privilege/systemcontrol exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported since 6 5 code example function unsetupdatefirmwarelistener { try { console log "begin unsetupdatefirmwarelistener" ; webapis systemcontrol unsetupdatefirmwarelistener ; } catch e { console log "unsetupdatefirmwarelistener exception [" + e code + "] name " + e name + " message " + e message ; return; } } setscreenlampschedule defines the screen lamp schedule for the device, consisting of time of day and lamp brightness level void setscreenlampschedule lampscheduleinfo info ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters info object containing the times and levels to be set exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type typemismatcherror if an input parameter is not compatible with its expected type with the error type notsupportederror if this feature is not supported with the error type invalidvalueserror if any input parameter contains an invalid value since 6 5 code example var info = { "use" "on", "firsttime" "08 55", "level1" 30, "secondtime" "16 50", "level2" 80 }; try { webapis systemcontrol setscreenlampschedule info ; } catch e { console log "[setscreenlampschedule] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getscreenlampschedule retrieves screen lamp schedule information for the device lampscheduleinfo getscreenlampschedule ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value lampscheduleinfo lampscheduleinfo object containing time and level information exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported since 6 5 code example var screenlampschedule = null; try { screenlampschedule = webapis systemcontrol getscreenlampschedule ; } catch e { console log "[getscreenlampschedule] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if screenlampschedule { console log "[getscreenlampschedule] call syncfunction type " + screenlampschedule ; } setpanelmute enables or disables panel mute on the device void setpanelmute activation enable ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters enable whether panel mute is enabled on to enable, off to disable exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type typemismatcherror if an input parameter is not compatible with its expected type with the error type notsupportederror if this feature is not supported with the error type invalidvalueserror if any input parameter contains an invalid value since 6 5 code example try { webapis systemcontrol setpanelmute "on" ; } catch e { console log "[setpanelmute] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getpanelmute retrieves the panel mute status of the device activation getpanelmute ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value activation panel mute status exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var panelmuteonoff = null; try { panelmuteonoff = webapis systemcontrol getpanelmute ; } catch e { console log "[getpanelmute] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if panelmuteonoff { console log "[getpanelmute] call syncfunction type " + panelmuteonoff ; } setsafetylock enables or disables the safety lock on the device when the safety lock is enabled, pin entry is required when an input signal is received void setsafetylock activation enable ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters enable whether the safety lock is enabled on to enable, off to disable exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type typemismatcherror if an input parameter is not compatible with its expected type with the error type notsupportederror if this feature is not supported with the error type invalidvalueserror if any input parameter contains an invalid value since 6 5 code example try { webapis systemcontrol setsafetylock "on" ; } catch e { console log "[setsafetylock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getsafetylock retrieves the safety lock status of the device activation getsafetylock ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value activation safety lock status exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var safetylock = null; try { safetylock = webapis systemcontrol getsafetylock ; } catch e { console log "[getsafetylock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if safetylock { console log "[getsafetylock] call syncfunction type " + safetylock ; } getonscreenmenuorientation retrieves the menu orientation of the device screenorientation getonscreenmenuorientation ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value screenorientation menu orientation exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var screenmenuorientation = null; try { screenmenuorientation = webapis systemcontrol getonscreenmenuorientation ; } catch e { console log "[getonscreenmenuorientation] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if screenmenuorientation { console log "[getonscreenmenuorientation] call syncfunction type " + screenmenuorientation ; } getsourceorientation retrieves the source orientation of the device screenorientation getsourceorientation sourcetype source ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters source value want to know the orientation of the source return value screenorientation source orientation exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var result = null; try { result = webapis systemcontrol getsourceorientation "hdmi1" ; console log "[getsourceorientation] call syncfunction type " + result ; } catch e { console log "[getsourceorientation] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } setpcconnection sets the computer connection type for the device void setpcconnection pcconnection type ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters type computer connection type exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type typemismatcherror if an input parameter is not compatible with its expected type with the error type notsupportederror if this feature is not supported with the error type invalidvalueserror if any input parameter contains an invalid value since 6 5 code example try { webapis systemcontrol setpcconnection "rj45" ; } catch e { console log "[setpcconnection] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getpcconnection retrieves the computer connection type for the device pcconnection getpcconnection ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value pcconnection computer connection type exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var pcconnection = null; try { pcconnection = webapis systemcontrol getpcconnection ; } catch e { console log "[getpcconnection] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if pcconnection { console log "[getpcconnection] call syncfunction type " + pcconnection ; } setmessagedisplay enables or disables on screen display osd for system messages on the device the following messages are affected by this setting source info, no signal message, mdc message void setmessagedisplay activation enable ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters enable osd message display status on to enable, off to disable exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type typemismatcherror if an input parameter is not compatible with its expected type with the error type notsupportederror if this feature is not supported with the error type invalidvalueserror if any input parameter contains an invalid value since 6 5 code example try { webapis systemcontrol setmessagedisplay "on" ; } catch e { console log "[setmessagedisplay] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getmessagedisplay retrieves the osd message display status of the device the following messages are affected by this setting source info, no signal message, mdc message if any of these message types is set to on, this method returns on activation getmessagedisplay ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value activation osd message display status exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var messagedisplay = null; try { messagedisplay = webapis systemcontrol getmessagedisplay ; } catch e { console log "[getmessagedisplay] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if messagedisplay { console log "[getmessagedisplay] call syncfunction type " + messagedisplay ; } setcustomappinfo defines the set customapp url and timeout void setcustomappinfo customappinfo info ; product b2b htv privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters info object containing the times and url to be set exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type typemismatcherror if an input parameter is not compatible with its expected type with the error type notsupportederror if this feature is not supported with the error type invalidvalueserror if any input parameter contains an invalid value since 6 5 code example var info = { "downloadserveraddress" "http //testserver/testwebapp/check", "connectiontimeout" "30sec" }; try { webapis systemcontrol setcustomappinfo info ; } catch e { console log "[setcustomappinfo] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getcustomappinfo retrieves information of customapp url and timeout customappinfo getcustomappinfo ; product b2b htv privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value customappinfo customappinfo object containing time and url information exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported since 6 5 code example var customappinfo = null; try { customappinfo = webapis systemcontrol getcustomappinfo ; } catch e { console log "[getcustomappinfo] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if customappinfo { console log "[getcustomappinfo] call syncfunction type " + customappinfo ; } setirlock defines the set ir lock void setirlock activation option ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters option whether the ir lock option is to be enable or disable exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error with the error type typemismatcherror if an input parameter is not compatible with its expected type since 6 5 code example var option = "on"; try { webapis systemcontrol setirlock option ; } catch e { console log "[setirlock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getirlock retrieves information of ir lock activation getirlock ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value activation irlock enable option exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var option = null; try { option = webapis systemcontrol getirlock ; } catch e { console log "[getirlock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } console log "[getirlock] call syncfunction type " + option ; setbuttonlock defines the set button lock void setbuttonlock activation option ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters option whether the button lock option is to be enable or disable exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error with the error type typemismatcherror if an input parameter is not compatible with its expected type since 6 5 code example var option = "on"; try { webapis systemcontrol setbuttonlock option ; } catch e { console log "[setbuttonlock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getbuttonlock retrieves information of button lock activation getbuttonlock ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value activation button lock enable option exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var option = null; try { option = webapis systemcontrol getbuttonlock ; } catch e { console log "[getbuttonlock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } console log "[getbuttonlock] call syncfunction type " + option ; setautopoweron defines the set auto poweron void setautopoweron activation option ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters option whether the auto poweron option is to be enable or disable exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error with the error type typemismatcherror if an input parameter is not compatible with its expected type since 6 5 code example var option = "on"; try { webapis systemcontrol setautopoweron option ; } catch e { console log "[setautopoweron] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getautopoweron retrieves information of auto poweron activation getautopoweron ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value activation auto poweron enable option exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var option = null; try { option = webapis systemcontrol getautopoweron ; } catch e { console log "[getautopoweron] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } console log "[getautopoweron] call syncfunction type " + option ; setmagicinfoserverinfo defines the set maigcinfo server void setmagicinfoserverinfo magicinfoserverinfo info ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters info object containing the ssl, address, port information exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type invalidvalueserror if any input parameter contains an invalid value with the error type unknownerror for any other error with the error type typemismatcherror if an input parameter is not compatible with its expected type since 6 5 code example var info = { "ssl" "http", "address" "100 43 33 55", "port" "8080" }; try { webapis systemcontrol setmagicinfoserverinfo info ; } catch e { console log "[setmagicinfoserverinfo] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getmagicinfoserverinfo retrieves information of magicinfo server address magicinfoserverinfo getmagicinfoserverinfo ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value magicinfoserverinfo magicinfoserverinfo object containing the ssl, address, port information exceptions webapiexception with the error type securityerror if the application does not have the privilege to call this method with the error type notsupportederror if this feature is not supported with the error type unknownerror for any other error since 6 5 code example var info = null; try { info = webapis systemcontrol getmagicinfoserverinfo ; } catch e { console log "[getmagicinfoserverinfo] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } console log "[getmagicinfoserverinfo] call syncfunction type " + info ; 3 full webidl module systemcontrol { enum activation { "on", "off" }; enum screenorientation { "landscape", "portrait", "auto" }; enum pcconnection { "rj45", "rs232", "invalid" }; enum customapptimeout { "30sec", "60sec", "90sec", "120sec", "150sec", "180sec", "240sec", "300sec" }; enum sourcetype { "tv", "pc", "hdmi1", "hdmi2", "hdmi3", "dp", "dvi", "magicinfo", "ops", "hdbt", "av", "comp", "magicinfos", "internal_usb", "url_launcher", "screen_mirroring" }; enum capturepath { "wgt-private-data", "wgt-private-tmp" }; [nointerfaceobject] interface lampscheduleinfo { attribute activation use; attribute domstring firsttime; attribute long level1; attribute domstring secondtime; attribute long level2; }; [nointerfaceobject] interface customappinfo { attribute domstring downloadserveraddress; attribute customapptimeout connectiontimeout; }; [nointerfaceobject] interface magicinfoserverinfo { attribute domstring ssl; attribute domstring address; attribute domstring port; }; [nointerfaceobject] interface systemcontrolmanagerobject { readonly attribute systemcontrolmanager systemcontrol; }; webapi implements systemcontrolmanagerobject; [callback = functiononly, nointerfaceobject] interface updatefirmwareprogresschangedcallback { void onchange long progress ; }; [nointerfaceobject] interface systemcontrolmanager { domstring getversion ; void capturescreen optional capturepath? path ; void rebootdevice ; domstring getserialnumber ; void updatefirmware domstring softwareid, domstring swufilename, domstring swversion, domstring swurl, long swtotalbytes ; void setupdatefirmwarelistener updatefirmwareprogresschangedcallback onchange ; void unsetupdatefirmwarelistener ; void setscreenlampschedule lampscheduleinfo info ; lampscheduleinfo getscreenlampschedule ; void setpanelmute activation enable ; activation getpanelmute ; void setsafetylock activation enable ; activation getsafetylock ; screenorientation getonscreenmenuorientation ; screenorientation getsourceorientation sourcetype source ; void setpcconnection pcconnection type ; pcconnection getpcconnection ; void setmessagedisplay activation enable ; activation getmessagedisplay ; void setcustomappinfo customappinfo info ; customappinfo getcustomappinfo ; void setirlock activation option ; activation getirlock ; void setbuttonlock activation option ; activation getbuttonlock ; void setautopoweron activation option ; activation getautopoweron ; void setmagicinfoserverinfo magicinfoserverinfo info ; magicinfoserverinfo getmagicinfoserverinfo ; }; };